import request from '@/utils/request';

// 获取天气信息
export function getWeatherData(location: string, apiKey: string) {
  return request({
    url: `https://devapi.qweather.com/v7/weather/now?location=${location}&key=${apiKey}`,
    method: 'get'
  });
}
